package com.hudson.common.domain.meta;

import java.util.Map;

/**
 * @Author: 渔小鲤
 * @DateTime: 2025/7/25 23:36
 **/
public class BrokerInfo {

    /**
     *  Broker 名称
     */
    private String brokerName;

    /**
     *  Broker 地址
     */
    private String address;

    /**
     *  Broker 端口
     */
    private int port;

    /**
     *  broker 存储 Topic + 队列信息
     */
    private Map<String,Integer> topicAndQueue;

    public BrokerInfo(String brokerName, String address, int port, Map<String, Integer> topicAndQueue) {
        this.brokerName = brokerName;
        this.address = address;
        this.port = port;
        this.topicAndQueue = topicAndQueue;
    }

    public String getBrokerName() {
        return brokerName;
    }

    public void setBrokerName(String brokerName) {
        this.brokerName = brokerName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public Map<String, Integer> getTopicAndQueue() {
        return topicAndQueue;
    }

    public void setTopicAndQueue(Map<String, Integer> topicAndQueue) {
        this.topicAndQueue = topicAndQueue;
    }
}
